package com.example.anno;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Date 2022/1/16
 * @Created by Jonathan
 */
@Component
public class Person {

	@Value("${xiaoming.id}")
	private Integer id;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Person{" +
				"id=" + id +
				'}';
	}
}
